package net.htjs.jdkgrammer.jdk11;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyInterfaceClass {

    public static void main(String[] args) {
        //jdk11中允许在lambda表达式的参数中使用var修饰
        MyInterface myInterface = (var a, var b) -> a + b;
        log.info("1 + 2 = {}", myInterface.add(1, 2));
    }
}
